import request from '@/utils/request'

export function addWorkerTypeInfo(data) {
  return request({
    url: 'api/WorkerTypeInfo/Add',
    method: 'post',
    data
  })
}

export function updWorkerTypeInfo(data) {
  return request({
    url: 'api/WorkerTypeInfo/Update',
    method: 'post',
    data
  })
}

export function delWorkerTypeInfo(id) {
  return request({
    url: 'api/WorkerTypeInfo/Delete',
    method: 'post',
    params: {
      id
    }
  })
}

export function queryworkerTypeInfo(data) {
  return request({
    url: 'api/WorkerTypeInfo/Query',
    method: 'post',
    data
  })
}

export function queryAllWorkerTypeInfo() {
  return request({
    url: 'api/WorkerTypeInfo/QueryAll',
    method: 'get'
  })
}
